package cate.game.activity.mooncake.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBMooncake;
import cate.game.res.MixRes;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "月饼副本关卡de战斗结果 の 返回")
public class MooncakeChallengeResultResp implements MsgOutput {
    @NoteField(value = "月饼副本类型id")
    public int funcId;

    @NoteField(value = "挑战是否成功")
    public boolean win;

    @NoteField(value = "获得的奖励", detail = "如果失败，则为null")
    public MixRes reward;

    @NoteField(value = "通关层数")
    public int passFloor;

    public MooncakeChallengeResultResp() {
    }

    public MooncakeChallengeResultResp(int funcId, boolean win, MixRes reward, int passFloor) {
        this.funcId = funcId;
        this.win = win;
        this.reward = reward;
        this.passFloor = passFloor;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBMooncake.MOONCAKE_CHALLENGE_RESULT_RESP;
    }
}
